﻿using System.ComponentModel.DataAnnotations;
using System;
using System.Collections.Generic;
namespace XSTDZ.ERP.Application.DataContracts
{
    /// <summary>
    /// 入库单
    /// </summary>
    [Serializable]
    public class ProductInBillDto
    {
        public Guid ID { get; set; }
        [Display(Name = "入库单号")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string ProductInBillNo { get; set; }
        [Display(Name = "入库时间")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public System.DateTime ProductInDate { get; set; }

        [Display(Name = "订单状态")]
        public int BillState { get; set; }//订单状态 码表
        [Display(Name = "是否结算")]
        public int IsSettle { get; set; } //是否结算
        [Display(Name = "删除状态")]
        public int Deleted { get; set; } //删除状态

        public System.Guid CreateID { get; set; }
        public System.DateTime CreateTime { get; set; }
        public Nullable<System.Guid> UpdateID { get; set; }
        public Nullable<System.DateTime> UpdateDate { get; set; }
        [Display(Name = "备注")]
        public string Remarks { get; set; }

        public System.Guid StorehouseID { get; set; }
        [Display(Name = "仓库名称")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string StorehouseName { get; set; }

        public System.Guid EmployeeID { get; set; }
        [Display(Name = "员工名称")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string EmployeeName { get; set; }

        public System.Guid SourceOrgID { get; set; }
        [Display(Name = "源组织机构名称")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string SourceOrgName { get; set; }

        public System.Guid SenderID { get; set; }
        [Display(Name = "送货人名称")]
        public string SenderName { get; set; }

        public string DeleteState { get; set; }
        public string SettleState { get; set; }//是否结算

        public string CreateName { get; set; }

     //   public IList<ProductInBillDetailDto> ProductInBillDetails { get; set; }
    }
}
